import { request } from "../utils/request";

export const getPageList = (data) => {
  return request({
    url: "/event/inspection/list",
    method: "post",
    data,
    header: { "content-type": "application/x-www-form-urlencoded" },
  });
};

export const getGroupList = (data) => {
  return request({
    url: `/event/inspection/addBefore`,
    method: "post",
    data,
    header: { "content-type": "application/x-www-form-urlencoded" },
  });
};
export const addData = (data) => {
  return request({
    url: `/event/inspection/add`,
    method: "post",
    data,
    header: { "content-type": "application/x-www-form-urlencoded" },
  });
};
export function getGoodsList(data) {
  return request({
    url: "/event/inspection/goodsList",
    method: "post",
    data,
    header: { "content-type": "application/x-www-form-urlencoded" },
  });
}
export function getDetailByID(data) {
  return request({
    url: "/event/inspection/detail",
    method: "post",
    data,
    header: { "content-type": "application/x-www-form-urlencoded" },
  });
}
